package com.ebs.md.api;

/**
 * Revision Author:
 *  $File: //depot/MarketData/commons-md-api/MAIN/src/main/java/com/ebs/md/api/IBookEntry.java $
 *  $Revision: #4 $
 *  $DateTime: 2012/07/04 14:00:52 $
 *  $Change: 112231 $
 *  $Author: Arik.Sher $
 */

import java.io.Serializable;


public interface IBookEntry
extends Serializable, Cloneable
{
	public BookSide  getSide();
	public Rate      getRate();
	public Long      getAmount();

	/**
	 * @param value expected value should be positive
	 */
	public void increaseAmount(long value);

	/**
	 * 
	 * @param value expected value should be positive
	 * @return whether price still active
	 *         true  (new amount still positive)
	 *         false (new amount is 0 or less)
	 */
	public boolean decreaseAmount(long value);
	
	public Object clone() throws CloneNotSupportedException
	;

}
